﻿using System;
using System.ComponentModel.DataAnnotations;

namespace LuDragon.Data.Entities
{
    /// <summary>
    /// 系统用户
    /// </summary>
    public class Sys_User
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        [Key]
        public int UserId { get; set; }
        /// <summary>
        /// 角色ID
        /// </summary>
        public int RoleId { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        [Required]
        [MaxLength(200)]
        public string UserName { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        [Required]
        [MaxLength(200)]
        public string Password { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        [Required]
        [MaxLength(200)]
        public string CnName { get; set; }
        /// <summary>
        /// 性别
        /// </summary>
        [MaxLength(50)]
        public string Sex { get; set; }
        /// <summary>
        /// 电话
        /// </summary>
        [MaxLength(50)]
        public string Phone { get; set; }
        /// <summary>
        /// 邮箱
        /// </summary>
        [MaxLength(200)]
        public string Email { get; set; }
        /// <summary>
        /// 注册时间
        /// </summary>
        public DateTime? RegisterTime { get; set; }
        /// <summary>
        /// 是否启用
        /// </summary>       
        public bool Enabled { get; set; }
        /// <summary>
        /// 是否系统用户
        /// </summary>
        public bool IsSystem { get; set; }

        /// <summary>
        /// 删除标识
        /// </summary>
        public bool IsDelete { get; set; }
    }
}
